class University{
   void enteRule (double math,double english , double chinese){
     double total = math+english+chinese;
     if(total >=180)
       System.out.println(total+"分数达到大学录取线");
     else
       System.out.println(total+"分数未达到大学录取线");
   }
}
class ImportantUniversity{
   void enteRule (double math,double english , double chinese){
   double total = math+english+chinese;
     if(total >=220)
       System.out.println(total+"分数达到重点大学录取线");
     else
       System.out.println(total+"分数未达到重点大学录取线");
   }
}
public class Example5_4{
   public static void main(String args[]){
     double math = 62,english = 76.5,chinese = 67;
     ImportantUniversity univer = new ImportantUniversity();
     univer.enteRule(math,english,chinese);
     math =91 ;
     english =82 ;
     chinese =86 ;
     univer.enteRule(math,english,chinese);
   }
}
